<ion-header>
  <ion-navbar>
    <ion-title class="hide">选择地址</ion-title>
    <ion-searchbar #searchBar
                   mode="ios"
                   placeholder="搜索地址"
                   (ionInput)="search($event.target.value)"
                   (ionFocus)="changeIsSearch()">
    </ion-searchbar>
  </ion-navbar>
</ion-header>

<ion-content>
  <div class="search" *ngIf="isSearch" (click)="isSearch = false">
    <ion-list style="background:#fff;">
      <ion-item *ngFor="let search of searchList" (click)="dismiss(search)" (blur)="getNewPoint($event)">
        <h2>{{search.name}}</h2>
        <p>{{search.address}}</p>
      </ion-item>
    </ion-list>
  </div>

  <div #container style="width: 100%;height: 80%;" id="container">
  </div>

  <div id="bottom">
    <div class="w12 bgcolor_white mb0 pl10 pt10 pr10 pb10">
      <div class="text_hide_none" (click)="getNewPoint2(newDatas.LATITUDE,newDatas.LONGITUDE)">
        <div class="w12 font_weight_bold">
          <span class="font_white  font_size_standard bgcolor_blue plr5 mr5 lh20">{{newDatas.DESCRIPTION}}</span>
          <i class="fa fa-map-marker mr5" style="color:#347eff;"></i>{{newDatas.ADDRESS}}
        </div>
        <span class="w08 mt5">{{newDatas.NAME}} / {{newDatas.MOBILE}}</span>
        <span class="w04 mt5 fr tr font_gray font_size_standard">{{newDatas.THRUTIME}}  {{newDatas.YYSJD}}</span>
        <span class="w12 mt5 font_black_666 font_size_standard">备注:{{newDatas.BZ ? newDatas.BZ : '无'}}
          &nbsp;保修:{{newDatas.GUARANTEE}}</span>
      </div>
      <div class="w12 rse_list_btn plr0">
        <button (click)="submit(newDatas,i )">抢单</button>
      </div>
    </div>
  </div>
</ion-content>
